<div class="latest page">
<h2 class="title01"><span><img src="<?php echo $this->getSkinUrl()?>images/image_01.gif" alt="" width="19" height="19" /></span>Latest News</h2>
<ul class="latest_cont">
<?php $posts = $this->getPosts(); ?>
<?php $i=0;foreach ($posts as $post){ ?>
<li class="<?php if($i==0){echo 'first_child';}elseif($i==(count($posts)-1)){echo 'last_child';}?>">
<?php if($post->getNfile()){?>
<img src="<?php echo Mage::getModel('imageresize/imagemodel')->init(Mage::getBaseUrl('media').$post->getNfile())->resize(166)?>" alt="<?php echo $post->getTitle();?>" class="news_img"/>
<?php }?>
<p><strong class="tt"><?php echo $post->getTitle();?></strong>
<?php echo strip_tags($post->getPostContent(),'<p>'); ?>
</p>
</li>
<?php $i++;}?>
</ul>
<?php echo $this->getPages(); ?>
</div>

